feat: allow the rendering of relative paths#13812
feat: allow the rendering of relative paths#13812steamer2k wants to merge 2 commits intosveltejs:mainfrom
Conversation
|
|
I'll see about following up on tests, lints and changesets tomorrow. |
|
This also allows you to serve the web app through Any app where you have direct access to the files and serve start from the |
remove path once sveltejs/kit#13812 is merged
|
Just curious if this PR is abandoned or still actively being worked on? Definitely interested in the ability to use relative paths on SPAs |
Sorry. I'm not actively working on it. It'd be great if someone wanted to work through the test cases. Otherwise, maybe I'll get back to it eventually. |
|
thank you but this isn't right #9569 (comment) |
resolves #595
resolves #9569
Allows building SPA sites with a relative asset path.
E.g., whether server from:
https://some.server/foohttps://some.server/foo/barhttps://some.server/foo/bar/baz...the SPA should be able to find the
_app/subdirectory as a sibling to the fallback page. E.g., given a fallback page ofindex.html:When
kit.paths.relativeis set, this change renders references to the_app/directory with a leading.so the browser interprets them as relative paths.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits